/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package net.eblabs.friendfeed;

import java.io.InputStream;
import org.apache.http.entity.mime.content.InputStreamBody;

/**
 *
 * @author epplestun
 */
class InputStreamKnownSizeBody extends InputStreamBody {
    private int lenght;

    public InputStreamKnownSizeBody(
                    final InputStream in, final int lenght,
                    final String mimeType, final String filename) {
            super(in, filename);
            this.lenght = lenght;
    }

    @Override
    public long getContentLength() {
            return this.lenght;
    }
}